<template>
  <div class="myvc">
      <!-- 首页 -->
    <LunboTu/>
    <!-- 自定义组件子传父  父穿另一个子  实现兄弟之间互传  传一个歌曲id 一个audio-->
    <MyFavorite @songid="getid"></MyFavorite>
    <hr>
   
   <SongsLyric  :songid="songid" :songurl="songurl"></SongsLyric>     
   <hr> 
   <!-- <SearchSongs/> -->
   <songListpush/>
  </div>

</template>

<script>
// import MyHeader from "./MyHeader"
import  LunboTu  from "./LunboTu"
import MyFavorite from "./MyFavorite"
// -------------------------------------------
import SongsLyric from "./SongsLyric"
// import SearchSongs from "./SearchSongs"  //待定
import  songListpush from "./songListpush"
 export default {
    name:' MyVc',
     data() {
          return {
          search:[],
          songid:"",
          songurl:""
        }
  },methods:{
      getid(id,url){
          console.log("url为："+url);
          this.songid=id;
          this. songurl=url;
          console.log("id为："+id);
      }
  },
     components:{
        // MyHeader,
        LunboTu,MyFavorite,
        SongsLyric,songListpush
        // SearchSongs
    },
}
</script>

<style>
.myvc{
    position: relative;
}
header {
            width: 100%;
            height: 80px;
            background-color: rgba(0, 0, 0, .3);
            text-align: center;
            line-height: 80px;
            padding-left: 100px;
            padding-right: 100px;
        }
        
        header h2 {
            font-family: '华文彩云';
            color: rgb(0, 255, 64);
            font-size: 35px;
            float: left;
            text-shadow: 0px 0px 0px #e2d83c, 1px 1px 0px #e2d83c, 2px 2px 0px #e2d83c, 3px 3px 0px #e2d83c, 4px 4px 0px #e2d83c, 5px 5px 0px #e2d83c;
        }
        
        header .search {
            width: 300px;
            height: 50px;
            float: left;
            position: relative;
            top: 15px;
            margin-left: 100px;
            border-radius: 25px;
            overflow: hidden;
         
        }
        
        header .search input {
            position: absolute;
            width: 300px;
            height: 50px;
            top: 0;
            left: 0;
            outline: none;
            padding-left: 20px;
            font-size: 20px;
        }
        
        header .search .iconsearch { 
            font-family: 'icomoon';
            font-size:20px;
            position: absolute;
            top:5px;
            right: 30px;
            line-height: 50px;
        }
        
        header ul {
            float: left;
            padding-left: 100px;
        }
        
        header ul li {
            font-size: 20px;
            float: left;
            margin-right: 100px;
        }
        /* ------------------------------- */
     
</style>